<template>
  <header class="header">
    <div class="header-logo-wrapper">
      <span class="logo-link"></span>
    </div>
    <div class="header-title-wrapper">
      <h1>报名小程序后台</h1>
    </div>
    <span class="header-logout-wrapper" @click="logout">
      <i class="iconfont icontuichudenglu"></i>
      <span>
        退出登录
      </span>
    </span>
  </header>
</template>

<script>
export default {
  name: "Header",
  methods: {
    logout() {
      this.$emit("logout");
    }
  }
};
</script>

<style>
.header {
  background-color: #283443;
  width: 100%;
  height: 70px;
  text-align: left;
  line-height: 70px;
  color: #fff;
  min-width: 1200px;
  padding: 0 15px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}
.header-logo-wrapper {
  float: left;
  height: 100%;
}
.header-title-wrapper {
  width: 290px;
  margin: 0;
  padding: 0;
}
.logo-link {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin: 8px 10px 0 0;
  background: url("../../../assets/logo.png");
}
.header-logout-wrapper {
  display: inline-block;
  position: absolute;
  top: 0px;
  right: 35px;
  cursor: pointer;
}
</style>